<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<view class="actions">
			<button class="btn" type="primary" @tap="goReport">立即上报</button>
			<button class="btn" @tap="goHistory">上报历史</button>
			<button class="btn" @tap="goLogin">账号登录</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '美登思'
			}
		},
		onLoad() {

		},
		methods: {
			goReport() {
				uni.navigateTo({ url: '/pages/report/index' });
			},
			goHistory() {
				uni.navigateTo({ url: '/pages/history/index' });
			},
			goLogin() {
				uni.navigateTo({ url: '/pages/login/login' });
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}

	.actions { width: 80%; margin-top: 60rpx; display: flex; flex-direction: column; gap: 20rpx; }
	.btn { }
</style>
